﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CaseWarningForDeptUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.CaseManagement.CaseWarningForDept.CaseWarningForDeptUserControl" %>
<div>
    <table class="main" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <table class="webpart" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th id="togglePublicDoc" align="left">
                            <h2>
                                <img src="/_layouts/JM.JCY.Resource/images/error2.png" width="24" />
                                部门案件预警</h2>
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <hr />
                        </td>
                    </tr>
                    <tr><td>承办人:<asp:TextBox ID="txtCBR" runat="server" Width="180"></asp:TextBox>   
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtCBR" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="searchGP" Display="Dynamic">请输入承办人姓名，然后点击搜索！</asp:RequiredFieldValidator>
                        <asp:ImageButton id="imgSearch" runat="server" 
                                            ImageUrl="~/_layouts/JM.JCY.Resource/images/search_2.jpg" 
                            onclick="imgSearch_Click" ValidationGroup="searchGP" /></td></tr>
                    <tr>
                        
                        <td>
                            <asp:Label ID="NoRecord" runat="server" ForeColor="#CC3300" Text="您好，本部门还没有被预警的案件！"
                                Visible="false"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id="divTogglePublicDoc">
                                <asp:GridView ID="gvCaseWarning" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                    GridLines="Horizontal" CssClass="altrowstablebc" Width="100%" OnRowDataBound="gvCaseWarning_RowDataBound"
                                    EnableModelValidation="True" PageSize="20" AllowPaging="True" 
                                    OnPageIndexChanging="gvCaseWarning_PageIndexChanging">
                                    <Columns>
                                        <asp:BoundField HeaderText="案号" DataField="C_AH" >
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="承办部门" DataField="C_CBBM">
                                           <HeaderStyle Width="65px" />
                                        <ItemStyle Width="65px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="承办人" DataField="C_CBR">
                                           <HeaderStyle Width="55px" />
                                        <ItemStyle Width="55px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="案件阶段" DataField="C_AJJD">
                                           <HeaderStyle Width="65px" />
                                        <ItemStyle Width="65px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="当前阶段" DataField="C_DQJD">
                                           <HeaderStyle Width="65px" />
                                        <ItemStyle Width="65px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="开始日期" DataField="D_KSRQ" DataFormatString="{0:yyyy-MM-dd}"
                                            HtmlEncode="False">
                                               <HeaderStyle Width="65px" />
                                        <ItemStyle Width="65px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="到期日期" DataField="D_DQRQ" DataFormatString="{0:yyyy-MM-dd}"
                                            HtmlEncode="False">
                                               <HeaderStyle Width="65px" />
                                        <ItemStyle Width="65px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="超期天数" DataField="N_CQTS">
                                           <HeaderStyle Width="60px" />
                                        <ItemStyle Width="60px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="嫌疑人姓名" DataField="C_XYR">
                                           <HeaderStyle Width="80px" />
                                        <ItemStyle Width="80px" />
                                        </asp:BoundField>

                                        <asp:BoundField HeaderText="嫌疑人案由" DataField="C_XYRAY">
                                     
                                        </asp:BoundField>

                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    
</div>
<asp:HiddenField ID="hfDeptName" runat="server" />
